package fosu.generated.mapper;

import fosu.generated.entity.DetectionRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 检测记录Mapper接口
 */
@Mapper
public interface DetectionRecordMapper {

    /**
     * 插入检测记录
     */
    void insert(DetectionRecord record);

    /**
     * 根据论文ID查询检测记录
     */
    List<DetectionRecord> findByPaperId(@Param("paperId") Long paperId);

    /**
     * 根据ID查询检测记录
     */
    DetectionRecord findById(@Param("id") Long id);
}
